import Vue from "vue";
import VueRouter from "vue-router";
import AddGoods from "@/pages/AddGoods.vue";
import GoodsList from "@/pages/GoodsList.vue";
import MyCart from "@/pages/MyCart.vue";
Vue.use(VueRouter);
const router = new VueRouter({
	routes:[
		{
			path:"/",
			component:AddGoods
		},{
			path:"/goodsList",
			component:GoodsList
		},{
			path:"/myCart",
			component:MyCart
		}
	],
	mode:"history"
});
export default router;